package com.example.springboot.pojo;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

//员工表
@ApiModel("员工实体")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Employee {
    private Integer id;
    private String lastname;
    private String  email;
    private Integer gender;// 0 women 1 men
    private Integer did;
    private Department department;
    private Date birth;


    public Employee(String lastname, String email, Integer gender, Integer did) {
        this.lastname = lastname;
        this.email = email;
        this.gender = gender;
        this.did = did;
        //默认日期实现
        this.birth = new Date();
    }


}
